FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER Wang Jing

RUN mkdir -p /wjboot/server
RUN mkdir -p /wjboot/server/logs
RUN mkdir -p /wjboot/server/temp

WORKDIR /wjboot/server

ENV SERVER_PORT=8081

EXPOSE ${SERVER_PORT}

ADD ./target/base-admin.jar ./admin.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dserver.port=${SERVER_PORT}","-jar", "admin.jar"]
